package com.dftdla.util;

import java.util.Random;

/**
 * @author 14501
 */
public class RandomCode {
    private static final Random RANDOM = new Random();
    public static String generate(Integer len){
        StringBuilder res = new StringBuilder();
        while(len-->0){
            res.append(RANDOM.nextInt(10));
        }
        return res.toString();
    }
}
